package com.tianji.learning.service;

import com.tianji.common.domain.dto.PageDTO;
import com.tianji.common.domain.query.PageQuery;
import com.tianji.learning.domain.dto.LearningPlanDTO;
import com.tianji.learning.domain.entity.LearningLesson;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.vo.LearningLessonVo;
import com.tianji.learning.domain.vo.LearningPlanPageVO;

/**
 * <p>
 * 学生课程表 服务类
 * </p>
 *
 * @author author
 */
public interface ILearningLessonService extends IService<LearningLesson> {

    PageDTO<LearningLessonVo> pageQuery(PageQuery query);

    LearningLessonVo now();

    void deleteByCourseId(Long courseId);

    Long isLessonValid(Long courseId);

    LearningLessonVo selectByCourseId(Long courseId);

    Integer countLearningLessonByCourse(Long courseId);

    void createLearningPlan(LearningPlanDTO planDTO);

    LearningPlanPageVO selectLearningPlan(PageQuery query);

    void checkAndDeleteBeOver();
}
